/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fgv.erp.modelo;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author adao
 */
@Entity
@Table(name = "LocalFisico")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "LocalFisico.findAll", query = "SELECT l FROM LocalFisico l"),
    @NamedQuery(name = "LocalFisico.findByLocalFisico", query = "SELECT l FROM LocalFisico l WHERE l.localFisico = :localFisico"),
    @NamedQuery(name = "LocalFisico.findByBanner", query = "SELECT l FROM LocalFisico l WHERE l.banner = :banner"),
    @NamedQuery(name = "LocalFisico.findByTitle", query = "SELECT l FROM LocalFisico l WHERE l.title = :title"),
    @NamedQuery(name = "LocalFisico.findByMenu", query = "SELECT l FROM LocalFisico l WHERE l.menu = :menu"),
    @NamedQuery(name = "LocalFisico.findByNome", query = "SELECT l FROM LocalFisico l WHERE l.nome = :nome"),
    @NamedQuery(name = "LocalFisico.findByImovelImovel", query = "SELECT l FROM LocalFisico l WHERE l.imovelImovel = :imovelImovel")})
public class LocalFisico implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "localFisico")
    private Long localFisico;
    @Column(name = "banner")
    private Boolean banner;
    @Size(max = 255)
    @Column(name = "title")
    private String title;
    @Column(name = "menu")
    private Boolean menu;
    @Size(max = 255)
    @Column(name = "nome")
    private String nome;
    @Column(name = "imovel_imovel")
    private BigInteger imovelImovel;

    public LocalFisico() {
    }

    public LocalFisico(Long localFisico) {
        this.localFisico = localFisico;
    }

    public Long getLocalFisico() {
        return localFisico;
    }

    public void setLocalFisico(Long localFisico) {
        this.localFisico = localFisico;
    }

    public Boolean getBanner() {
        return banner;
    }

    public void setBanner(Boolean banner) {
        this.banner = banner;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Boolean getMenu() {
        return menu;
    }

    public void setMenu(Boolean menu) {
        this.menu = menu;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public BigInteger getImovelImovel() {
        return imovelImovel;
    }

    public void setImovelImovel(BigInteger imovelImovel) {
        this.imovelImovel = imovelImovel;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (localFisico != null ? localFisico.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof LocalFisico)) {
            return false;
        }
        LocalFisico other = (LocalFisico) object;
        if ((this.localFisico == null && other.localFisico != null) || (this.localFisico != null && !this.localFisico.equals(other.localFisico))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.com.fgv.erp.modelo.LocalFisico[ localFisico=" + localFisico + " ]";
    }
    
}
